<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="./RGraph/RGraph.common.core.js"></script>
    <script src="./RGraph/RGraph.bar.js"></script>

</head>

<body>

    <div>
        <canvas id="canvas" width="500" height="250"></canvas>
    </div>
    <script>
        var bar = new RGraph.Bar('canvas', [10, 30, 20, 10]);
        bar.Set('chart.gutter', 5);
        bar.Set('chart.colors', ['red']);
        bar.Set('chart.title', 'Sales Report');
        bar.Set('chart.labels', ['10', '20', '30', '40']);
        bar.Draw();
    </script>

</body>

</html>